import request from '@/utils/request'

export function getProblems(level, keyword) {
  return request({
    method: 'post',
    url: '/problems',
    data: { level, keyword }
  })
}

export function getProblemDetail(problemId) {
  return request({
    method: 'get',
    url: `/problems/${problemId}`
  })
}

export function getExamples(problemId) {
  return request({
    method: 'get',
    url: `/examples/${problemId}`
  })
}
